package com.example.myapplication.beans;

import java.io.Serializable;

public class Contacts implements Serializable {

    private int id;     //主键id
    private String name;    //联系人姓名
    private int gender;    //0代表男士，1代表女士 //但此处测试我将头像换掉不遵循此规则
    private String phone;   //联系人电话
    private int groupId;    //分组id,0代表朋友，1代表家人，2代表同事

    public Contacts() {
    }

    public Contacts(String name, int gender) {
        this.name = name;
        this.gender = gender;
    }

    public Contacts(int id, String name, int gender, String phone, int groupId) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.phone = phone;
        this.groupId = groupId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    @Override
    public String toString() {
        return "Contacts{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                ", phone='" + phone + '\'' +
                ", groupId=" + groupId +
                '}';
    }
}
